<!DOCTYPE html>
<!-- saved from url=(0052)http://getbootstrap.com/docs/4.0/examples/dashboard/ -->
<html lang="en">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>Dashboard Template for Bootstrap</title>
    <!-- Bootstrap core CSS -->
    <link th:href="@{/css/bootstrap.min.css}" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link th:href="@{/css/dashboard.css}" rel="stylesheet">

</head>

<body>
<div th:replace="~{commons/commons::topbar}"></div>

<div class="container-fluid">
    <div class="row">
        <div th:replace="~{commons/commons::sidebar(active='addStudents.html')}"></div>

        <main role="main" class="col-md-9 ml-sm-auto col-lg-10 pt-3 px-4">

            <form action="/students/save" th:object="${aStudent}" method="post" >
<!--              <input type="hidden" name="id" th:filed="${aStudent.id}">-->
                <div class="form-group">
                    <label>学号</label>
                    <input type="text" class="form-control" name="number" placeholder="201901" th:field="${aStudent.number}">
                </div>
                <div class="form-group">
                    <label>姓名</label>
                    <input type="text" class="form-control" name="name" placeholder="张三" th:filed="${aStudent.name}">
                </div>
                <div class="form-group">
                    <label>电话号码</label>
                    <input type="text" class="form-control" name="phone" placeholder="11762442701" th:filed="${aStudent.phone}">
                </div>
                <div class="form-group">
                    <label>性别</label><br/>
                    <div class="form-check form-check-inline">
                        <input class="form-check-input" type="radio" name="sex" value="1" id="man" th:filed="${aStudent.sex}">
                        <label class="form-check-label" for="man">男</label>
                    </div>
                    <div class="form-check form-check-inline">
                        <input class="form-check-input" type="radio" name="sex" value="0" id="wom" th:filed="${aStudent.sex}">
                        <label class="form-check-label" for="wom">女</label>
                    </div>
                </div>
                <div class="form-group">
                    <label>宿舍号</label>
                    <select class="form-control" name="dormitoryId">
                        <option th:each="bNO:${aDormitory}" th:text="${bNO.getDormitoryNo()}" th:value="${bNO.getId()}"></option>

                    </select>
                </div>
                <button class="btn btn-primary">添加</button>

            </form>
        </main>
    </div>
</div>



</body>

</html>